package com.shanghaionstar.report.pool;

/**
 * Created by 6335yz on 2016/11/9.
 * 对应线程池PollThread;
 */
public class PoolThreadExecutor {

    private PoolThread poolThread;

    private PoolThreadExecutor() {
        poolThread = new PoolThread(5);
    }

    public static PoolThreadExecutor getThreadPollExecutor() {
        return SingeltonHolder.poolThreadExecutor;
    }

    private static class SingeltonHolder {
        private static final PoolThreadExecutor poolThreadExecutor = new PoolThreadExecutor();
    }

    public PoolThread getExecutorService() {
        return poolThread;
    }

}
